package com.my.system.controller;

import com.my.common.core.domain.R;
import com.my.system.domain.LoginDTO;
import com.my.system.service.ISysUserService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController

@Tag(name = "管理员接口")
public class SysUserController {
    @Autowired
    private ISysUserService sysUserService;

    public R<Void> login(LoginDTO loginDTO){
        return sysUserService.login(loginDTO.getUserAccount(),loginDTO.getPassword());
    }
}
